GivenStories: flush_gae_store.story

Narrative:

In order to record thoughts
As a thinker
I want to create an account
Or login into an existing account

Scenario: Bring up login page

Given the ThoughtDialog home PAGE "http://localhost:8080/td.html" IS PRESENT
When I click the BUTTON "Login/Join" on "Main" page
Then the TEXT_BOX "Thinker ID:" is present on "Login" page
And the TEXT_BOX "Password:" is present
And the BUTTON "Login" is present
And the CHECK_BOX "Join!" is present

Scenario: Join functionality is displayed

Given the "Login" page is up at "http://localhost:8080/td.html"
When I click the CHECK_BOX "Join!"
Then the BUTTON "Join" is present
And the TEXT_BOX "E-Mail:" is present

Scenario: Create a new thinker

Given the "Login" page is up in Join mode at "http://localhost:8080/td.html"
When I type "Tester" in TEXT_BOX "Thinker ID:"
And I type "pAssw0rd" in TEXT_BOX "Password:"
And I type "tester@thinkdialog.com" in TEXT_BOX "E-Mail:"
And I click the BUTTON "Join"
Then the TEXT "Welcome Tester!" is present on "Main" page

Scenario: Logout a new thinker

Given the ThoughtDialog home PAGE "http://localhost:8080/td.html" IS PRESENT
When I click the BUTTON "Logout" on "Main" page
Then the BUTTON "Login/Join" is present on "Main" page